package com.wondersgroup.fjzlpt.console.controller.view.bqxx;

import com.alibaba.fastjson.JSONObject;
import com.quick.framework.boot.web.utils.RequestUtils;
import com.wondersgroup.fjzlpt.console.utils.ControllerCommonUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 病区信息
 * Created by lion on 2017/8/14.
 */
@Controller
@RequestMapping("/bqxx")
public class BqxxController {

    /**
     * 机构病区信息
     * @param request
     * @return
     */
    @RequestMapping("/index.html")
    public String index(HttpServletRequest request){
        JSONObject requestData = ControllerCommonUtils.getRequestData(request);
        request.setAttribute("requestData", requestData);
        return "bqxx/index";
    }

    /**
     * 机构病区维护页面
     * @param request
     * @return
     */
    @RequestMapping("/manager.html")
    public String manager(HttpServletRequest request){
        JSONObject requestData = ControllerCommonUtils.getRequestData(request);
        Map map = RequestUtils.GetParameterMap(request);
        requestData.putAll(map);
        request.setAttribute("requestData", requestData);
        return "bqxx/manager";
    }
}
